package agent.keskkonna;

import agent.AgentType;
import agent.keskkonna.behaviour.KeskkonnaCyclicBehaviour;
import agent.util.AgentUtil;
import jade.core.Agent;
import jade.util.Logger;

/**
 *
 * @author margus
 */
public class KeskkonnaAgent extends Agent {

	private static final Logger LOG = Logger.getJADELogger(KeskkonnaAgent.class.getName());
	private static final long serialVersionUID = 1L;

	@Override
    protected void setup() {
        super.setup();
        AgentUtil.registerByName(this, AgentType.KESKKOND);
       
        addBehaviour(new KeskkonnaCyclicBehaviour(this));
    }

    @Override
    protected void takeDown() {
       LOG.info("Physician-agent " + getAID().getName() + " terminated");
    }
}
